﻿using System;
using System.Diagnostics;

namespace Program14
{
    class Program
    {
        static void Main(string[] args)
        {
            ////获取当前程序中所有正在允许的进程
            //Process[] pros = Process.GetProcesses();
            //foreach (var p in pros)
            //{
            //    Console.WriteLine(p);
            //    //谁试谁死
            //    //p.kill();

            //}

            //通过应用程序打开应用的进程
            //Console.ReadLine();
            //Process.Start("calc");

            //Console.ReadLine();
            //Process.Start("WeGame");


            //通过进程打开指定的exe

            ProcessStartInfo psi = new ProcessStartInfo(@"E:\WeGame\wegame.exe");

            //创建进程
            Process p = new Process();
            p.StartInfo = psi;
            p.Start();

        }


    }
}
